package com.oracle.Util;

import lombok.Data;

/**
 * 创建一个工具类，用于封装前后端数据交互时，统一数据格式
 */
@Data
public class ResultData {
    private Boolean flag;
    private Object data;
    private String msg;

    public ResultData(){}

    public ResultData(boolean flag){
        this.flag = flag;
    }

    public ResultData(Boolean flag,Object data){
       this.flag = flag;
       this.data = data;
    }

    public ResultData(Boolean flag,String msg){
       this.flag = flag;
       this.msg = msg;
    }

    public ResultData(Boolean flag, Object data, String msg) {
        this.flag = flag;
        this.data = data;
        this.msg = msg;
    }
}
